const mongoose = require('mongoose')
const Schema = mongoose.Schema

const TeacherType = {
  username: Number, //职工号
  mycourses: String // 取数据时用String.split(',') 存数据时用Array.join(',')
}
const TeacherModel = mongoose.model('teacher', new Schema(TeacherType))

module.exports = TeacherModel
